package com.stone.controller;

import com.stone.config.MyAnnotation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AopController {

    @GetMapping("/add1")
    @MyAnnotation
    public String addData1(String deviceId) {
        return "success" + deviceId;
    }

    @GetMapping("/add2")
    public String addData2(String deviceId) {
        return "success" + deviceId;
    }

    public static void main(String[] args) {
    }



}
